﻿/* 8. Write a program that, depending on the user's choice inputs int, double or string variable. 
 * If the variable is integer or double, increases it with 1. 
 * If the variable is string, appends "*" at its end. 
 * The program must show the value of that variable as a console output. Use switch statement. */

using System;

public class DependingDataInput
{
    public static void Main()
    {
        string input;
        double doubleNumber;

        Console.Write("data input = ");
        input = Console.ReadLine();
        Console.WriteLine("------------");

        if (double.TryParse(input, out doubleNumber))
            Console.WriteLine(++doubleNumber);
        else
        {
            input = input + "\"*\"";
            Console.WriteLine(input);
        }
    }
}